package com.zzyl.controller;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.NursingProjectPageDTO;
import com.zzyl.service.NursingProjectService;
import com.zzyl.vo.NursingProjectVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.util.pattern.PathPattern;

/**
 * wangcong
 * 2025/1/10 14:21
 */
@RestController
@RequestMapping("/nursing_project")
@Api(tags = "护理项目相关接口")
public class NursingProjectController extends BaseController{

    @Autowired
    private NursingProjectService nursingProjectService;


    /**
     * 护理项目分页查询
     * @param nursingProjectPageDTO
     * @return
     */
    @GetMapping
    @ApiOperation(value = "护理项目分页查询")
    public ResponseResult<PageResponse<NursingProjectVO>> pageQuery(NursingProjectPageDTO nursingProjectPageDTO){
        PageResponse<NursingProjectVO> pageResponse =nursingProjectService.pageQuery(nursingProjectPageDTO);
        return success(pageResponse);
    }

    @PostMapping
    @ApiOperation(value = "护理项目新增")
    public ResponseResult add(){
        return success();
    }



}
